/*
 *  Preferences.h
 *  xGPS
 *
 *  Created by Miguel Arroz on 10/06/29.
 *  Copyright Miguel Arroz. All rights reserved.
 *
 */

#ifndef __PREFERENCES_H
#define __PREFERENCES_H

#include "xGPS.h"

typedef struct {
    char* host;
	unsigned short port;
} xGPSPreferences;

#include "Broadcaster.h"

char* getXGPSHost( void );
unsigned short getXGPSPort( void );
void setXGPSHost( char* host );
void setXGPSPort( unsigned short port );
void initPreferences( void );
FILE *get_prefs_file(char *mode);
void loadPreferences();
void savePreferences();

#if APL
int MacToUnixPath(const char * inPath, char * outPath, int outPathMaxLen);
#endif

#endif